home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / inter36b.zip / MEMORY.LST < prev    next >
File List  |  1993-07-13  |  25KB  |  564 lines

  1. [This file was originally provided by Robin Walker.  --Ralf]
  2. Last Update: 7/13/93
  3.  
  4. Format of BIOS Data Segment at segment 40h:
  5.         {items in curly braces not documented by IBM}
  6. Offset    Size    Description
  7.  00h    WORD    Base I/O address of 1st serial I/O port, zero if none
  8.  02h    WORD    Base I/O address of 2nd serial I/O port, zero if none
  9.  04h    WORD    Base I/O address of 3rd serial I/O port, zero if none
  10.  06h    WORD    Base I/O address of 4th serial I/O port, zero if none
  11.            Note: Above fields filled in turn by POST as it finds serial
  12.             ports. POST never leaves gaps. DOS and BIOS serial device
  13.             numbers may be redefined by re-assigning these fields.
  14.  08h    WORD    Base I/O address of 1st parallel I/O port, zero if none
  15.  0Ah    WORD    Base I/O address of 2nd parallel I/O port, zero if none
  16.  0Ch    WORD    Base I/O address of 3rd parallel I/O port, zero if none
  17.  0Eh    WORD    [non-PS] Base I/O address of 4th parallel port, zero if none
  18.         [PS] Segment of Extended BIOS Data Segment
  19.             Note: Above fields filled in turn by POST as it finds
  20.             parallel ports. POST never leaves gaps. DOS and BIOS
  21.             parallel device numbers may de redefined by re-assigning
  22.             these fields.
  23.  10h    WORD    Installed hardware:
  24.             bits 15-14: number of parallel devices
  25.             bit        13: [Conv] Internal modem
  26.             bit        12: reserved
  27.             bits 11- 9: number of serial devices
  28.             bit         8: reserved
  29.             bits  7- 6: number of diskette drives minus one
  30.             bits  5- 4: Initial video mode:
  31.                     00b = EGA,VGA,PGA
  32.                     01b = 40 x 25 color
  33.                     10b = 80 x 25 color
  34.                     11b = 80 x 25 mono
  35.             bit         3: reserved
  36.             bit         2: [PS] =1 if pointing device
  37.                 [non-PS] reserved
  38.             bit         1: =1 if math co-processor
  39.             bit         0: =1 if diskette available for boot
  40.  12h    BYTE    [Conv] POST status
  41.         [AT] {Manufacturing test initialisation flags}
  42.  13h    WORD    Base memory size in kbytes (0-640)
  43.  15h    BYTE    [AT] {Manufacturing test scratch pad}
  44.  16h    BYTE    [AT] {Manufacturing test scratch pad}
  45.         [PS/2 Mod 30] BIOS control flags
  46.  17h    BYTE    Keyboard status flags 1:
  47.             bit 7 =1 INSert active
  48.             bit 6 =1 Caps Lock active
  49.             bit 5 =1 Num Lock active
  50.             bit 4 =1 Scroll Lock active
  51.             bit 3 =1 either Alt pressed
  52.             bit 2 =1 either Ctrl pressed
  53.             bit 1 =1 Left Shift pressed
  54.             bit 0 =1 Right Shift pressed
  55.  18h    BYTE    Keyboard status flags 2:
  56.             bit 7 =1 INSert pressed
  57.             bit 6 =1 Caps Lock pressed
  58.             bit 5 =1 Num Lock pressed
  59.             bit 4 =1 Scroll Lock pressed
  60.             bit 3 =1 Pause state active
  61.             bit 2 =1 Sys Req pressed
  62.             bit 1 =1 Left Alt pressed
  63.             bit 0 =1 Left Ctrl pressed
  64.  19h    BYTE    Keyboard: Alt-nnn keypad workspace
  65.  1Ah    WORD    Keyboard: ptr to next character in keyboard buffer
  66.  1Ch    WORD    Keyboard: ptr to first free slot in keyboard buffer
  67.  1Eh 16 WORDs    Keyboard circular buffer (but see 80h, 82h for override)
  68.  3Eh    BYTE    Diskette recalibrate status:
  69.             bit 7 =1 Diskette hardware interrupt occurred
  70.             bits 6-4 reserved
  71.             bit 3 =1 Recalibrate diskette 3
  72.             bit 2 =1 Recalibrate diskette 2
  73.             bit 1 =1 Recalibrate diskette 1
  74.             bit 0 =1 Recalibrate diskette 0
  75.  3Fh    BYTE    Diskette motor status:
  76.             bit 7 =1 current operation is write or format
  77.               =0 current operation is read or verify
  78.             bit 6    reserved
  79.             bits 5-4 diskette drive number selected (0-3)
  80.             bit 3 =1 diskette 3 motor on
  81.             bit 2 =1 diskette 2 motor on
  82.             bit 1 =1 diskette 1 motor on
  83.             bit 0 =1 diskette 0 motor on
  84.  40h    BYTE    Diskette motor turn-off time-out count
  85.  41h    BYTE    Diskette last operation status (0 = OK)
  86.             bit 7 =1 drive not ready
  87.             bit 6 =1 seek error
  88.             bit 5 =1 general controller failure
  89.             bits 4-0:
  90.                 00h no error
  91.                 01h invalid request
  92.                 02h address mark not found
  93.                 03h write-protect error
  94.                 04h sector not found
  95.                 06h diskette change line active
  96.                 08h DMA overrun
  97.                 09h DMA across 64k boundary
  98.                 0Ch media type unknown
  99.                 10h CRC error on read
  100.  42h  7 BYTEs    Diskette/Fixed disk status/command bytes
  101.     42h BYTE    XT: command byte to hard disk controller
  102.         AT: write precompensation cylinder number / 4
  103.     43h    BYTE    XT: bit 5 = drive number, bits 3-0=head number
  104.         AT: sector count
  105.     44h BYTE    XT: bits 6,7 = high bits of track, bits 5-0 = start sector-1
  106.         AT: starting sector
  107.     45h BYTE    low byte of track number
  108.     46h BYTE    XT: sector count
  109.         AT: high bits of track number
  110.     47h BYTE    XT: controlbyte from HD parameters (step rate,...)
  111.         AT: 101DHHHH, D=drive number, HHHH=head number
  112.     48h BYTE    XT: INT 13h subfunction number
  113.         AT: comand byte to hard disk controller
  114.  49h    BYTE    Video current mode
  115.  4Ah    WORD    Video columns on screen
  116.  4Ch    WORD    Video page (regen buffer) size in bytes
  117.  4Eh    WORD    Video current page start address in regen buffer
  118.  50h 16 BYTEs    Video cursor position (col, row) for eight pages, 0 based
  119.  60h    WORD    Video cursor type, 6845 compatible, hi=startline, lo=endline
  120.  62h    BYTE    Video current page number
  121.  63h    WORD    Video CRT controller base address: color=03D4h, mono=03B4h
  122.  65h    BYTE    Video current setting of mode select register 03D8h/03B8h
  123.  66h    BYTE    Video current setting of CGA palette register 03D9h
  124.  67h    DWORD    POST real mode re-entry point after certain resets
  125.  6Bh    BYTE    POST last unexpected interrupt
  126.  6Ch    DWORD    Timer ticks since midnight
  127.  70h    BYTE    Timer overflow, non-zero if has counted past midnight
  128.  71h    BYTE    Ctrl-Break flag: bit 7=1
  129.  72h    WORD    POST reset flag:
  130.             = 1234h if to bypass memory test (warm boot)
  131.             = 4321h [PS/2 MCA only] if to preserve memory
  132.             = 5678h [Conv] system suspended
  133.             = 9ABCh [Conv] manufacturing test mode
  134.             = ABCDh [Conv] POST loop mode
  135.             =    64h Burn-in mode
  136.  74h    BYTE    Fixed disk last operation status: {except ESDI drives}
  137.             00h no error
  138.             01h invalid function request
  139.             02h address mark not found
  140.             03h write protect error
  141.             04h sector not found
  142.             05h reset failed
  143.             06h diskette removed
  144.             07h drive parameter activity failed
  145.             08h DMA overrun
  146.             09h DMA data boundary error
  147.             0Ah bad sector flag detected
  148.             0Bh bad track detected
  149.             0Ch requested diskette media type not found
  150.             (PS/2 or extended BIOS only)
  151.             unsupported track
  152.             0Dh invalid number of sectors for Format
  153.             0Eh control data address mark detected
  154.             0Fh DMA arbitration level out of range
  155.             10h uncorrectable ECC or CRC error
  156.             11h ECC corrected data error
  157.             20h general controller failed
  158.             40h seek failed
  159.             80h time out
  160.             AAh drive not ready
  161.             BBh undefined error
  162.             CCh write fault on selected drive
  163.             E0h status error/error register is zero
  164.             FFh sense failed
  165.  74h    BYTE    [WD1002-27X SuperBIOS] total drives, first controller only
  166.  75h    BYTE    Fixed disk: number of fixed disk drives
  167.         [WD1002-27X SuperBIOS] total fixed drives, both controllers
  168.  76h    BYTE    Fixed disk: control byte    {IBM document only for XT}
  169.         XT: hard disk controller's I/O address (Western Digital)
  170.         [WD1002-27X SuperBIOS] used in track recalculation
  171.  77h    BYTE    Fixed disk: I/O port offset {IBM document only for XT}
  172.         [WD1002-27X SuperBIOS] used in track recalculation
  173.  78h  3 BYTEs    Parallel devices 1-3 time-out counters
  174.  7Bh    BYTE    parallel device 4 time-out counter [non-PS]
  175.         bit 5 set if Virtual DMA Spec supported [PS] (see INT 4B)
  176.  7Ch  4 BYTEs    Serial devices 1-4 time-out counters
  177.  80h    WORD    Keyboard buffer start as offset from segment 40h (normally 1Eh)
  178.  82h    WORD    Keyboard buffer end+1 as offset from segment 40h (normally 3Eh)
  179.         [XT BIOS dated 11/08/82 ends here]
  180.  84h    BYTE    Video EGA/MCGA/VGA rows on screen minus one
  181.  85h    WORD    Video EGA/MCGA/VGA character height in scan-lines
  182.  87h    BYTE    Video EGA/VGA control: [MCGA: =00h]
  183.             bit 7:  =1 if not to clear RAM (see INT 10h, AH=00h)
  184.             bits 6-5: RAM on adapter = (this field + 1) * 64K
  185.             bit 4:  reserved
  186.             bit 3:  =0 if EGA/VGA video system active, =1 if inactive
  187.             bit 2:  =1 if to wait for display enable (what means this?)
  188.             bit 1:  =0 for color or ECD monitor, =1 for mono monitor
  189.             bit 0:  =0 alphanumeric cursor emulation enabled, =1 not.
  190.                 When enabled, text mode cursor size (INT 10,AH=01h)
  191.                 settings looking like CGA ones are translated to
  192.                 equivalent EGA/VGA ones.
  193.  88h    BYTE    Video EGA/VGA switches: [MCGA: reserved]
  194.             bits 7-4: power-on state of feature connector bits 3-0
  195.             bits 3-0: configuration switches 4-1 (=0 on, =1 off)
  196.               Values as read:
  197.             0h Pri MDA,        Sec EGA+old color display 40 x 25
  198.             1h Pri MDA,        Sec EGA+old color display 80 x 25
  199.             2h Pri MDA,        Sec EGA+ECD normal mode (CGA emul)
  200.             3h Pri MDA,        Sec EGA+ECD enhanced mode
  201.             4h Pri CGA 40 x 25, Sec EGA mono display
  202.             5h Pri CGA 80 x 25, Sec EGA mono display
  203.             6h Pri EGA+old color display 40 x 25,  Sec MDA
  204.             7h Pri EGA+old color display 80 x 25,  Sec MDA
  205.             8h Pri EGA+ECD normal mode (CGA emul), Sec MDA
  206.             9h Pri EGA+ECD enhanced mode,           Sec MDA
  207.             Ah Pri EGA mono display,           Sec CGA 40 x 25
  208.             Bh Pri EGA mono display,           Sec CGA 80 x 25
  209.             When bit4 of 40h:89h is 0, VGA emulates 350-line EGA if
  210.             this byte is x3h or x9h, otherwise emulates 200-line CGA in
  211.             400-line double scan. VGA resets this byte to x9h after the
  212.             mode set.
  213.             See also note for next byte.
  214.  89h    BYTE    Video MCGA/VGA mode-set option control:
  215.             bits 7 and 4:
  216.             0 0  350-line mode requested
  217.             0 1  400-line mode at next mode set
  218.             1 0  200-line mode requested
  219.             1 1  reserved
  220.             Apparently VGA BIOS mode set disregards bit 7 and uses
  221.             byte 40h:88h to determine 200/350 selection when bit 4
  222.             is zero. Presumably bit 7 is a convenience for other
  223.             purposes. Bit 7 is reset to zero after the mode set.
  224.             bit 6:  =1 if display switching enabled, =0 if disabled
  225.             bit 5:  reserved
  226.             bit 4:  [VGA]  =1 if to use 400-line mode at next mode set
  227.                    =0 if to emulate EGA at next mode set
  228.                       This bit set to 1 after the mode set.
  229.                 [MCGA] =1 use 400-line mode at next mode set
  230.                    =0 emulate CGA, digital monitor, 200 lines,
  231.                       8 x 8 text font at next mode set
  232.                       Bit unchanged by mode set.
  233.             bit 3:  =0 if default palette loading enabled at mode set
  234.             bit 2:  =1 if mono display, =0 if color display
  235.             bit 1:  =1 if gray scale summing enabled, =0 if disabled
  236.             bit 0:  [VGA] =1 if VGA active, =0 if not
  237.                 [MCGA] reserved, zero
  238.         Note: the Tseng ET4000 BIOS v3.00 uses bits 6-4 of 88h and
  239.             bits 6-5 of 89h to specify graphics-mode refresh
  240.             rates as follows
  241.                 88h/6        640x480:  1 for 72Hz,0 for 60Hz
  242.                 88h/5+89h/6    800x600:  00  60Hz
  243.                               01  56Hz
  244.                               11  72Hz
  245.                 88h/4+89h/5    1024x768: 00  interlaced
  246.                               01  60Hz
  247.                               10  72Hz???
  248.                               11  70Hz
  249.  8Ah    BYTE    Video [MCGA/VGA]: index into Display Combination Code table
  250.  8Bh    BYTE    Diskette media control [not XT]:
  251.             bits 7-6: Last data rate set by controller:
  252.                   00=500kbps, 01=300kbps, 10=250kbps, 11=reserved
  253.             bits 5-4: Last diskette drive step rate selected
  254.             bits 3-2: {Data rate at start of operation}
  255.             bits 1-0: reserved
  256.  8Ch    BYTE    Fixed disk controller status [not XT]
  257.  8Dh    BYTE    Fixed disk controller Error Status [not XT]
  258.  8Eh    BYTE    Fixed disk Interrupt Control [not XT]
  259.         cleared to 00h at start of disk operation, set to FFh by IRQ14
  260.         handler when hard disk controller completes command
  261.  8Fh    BYTE    Diskette controller information [not XT]:
  262.             bit 7:  reserved
  263.             bit 6:  =1 drive 1 determined
  264.             bit 5:  =1 drive 1 is multi-rate, valid if drive determined
  265.             bit 4:  =1 drive 1 supports 80 tracks, always valid
  266.             bit 3:  reserved
  267.             bit 2:  =1 drive 0 determined
  268.             bit 1:  =1 drive 0 is multi-rate, valid if drive determined
  269.             bit 0:  =1 drive 0 supports 80 tracks, always valid
  270.  90h    BYTE    Diskette drive 0 media state
  271.  91h    BYTE    Diskette drive 1 media state
  272.             bits 7-6: Data rate: 00=500kbps, 01=300kbps, 10=250kbps
  273.             bit       5: =1 if double stepping reqd (e.g. 360kB in 1.2MB)
  274.             bit       4: =1 if media established
  275.             bit       3: reserved
  276.             bits 2-0: on exit from BIOS, contain:
  277.                 000 trying 360kB in 360kB
  278.                 001 trying 360kB in 1.2MB
  279.                 010 trying 1.2MB in 1.2MB
  280.                 011 360kB in 360kB established
  281.                 100 360kB in 1.2MB established
  282.                 101 1.2MB in 1.2MB established
  283.                 110 reserved
  284.                 111 all other formats/drives
  285.  92h    BYTE    Diskette drive 0 media state at start of operation
  286.  93h    BYTE    Diskette drive 1 media state at start of operation
  287.  94h    BYTE    Diskette drive 0 current track number
  288.  95h    BYTE    Diskette drive 1 current track number
  289.  96h    BYTE    Keyboard status byte 1
  290.             bit 7 =1 read-ID in progress
  291.             bit 6 =1 last code read was first of two ID codes
  292.             bit 5 =1 force Num Lock if read-ID and enhanced keyboard
  293.             bit 4 =1 enhanced keyboard installed
  294.             bit 3 =1 Right Alt pressed
  295.             bit 2 =1 Right Ctrl pressed
  296.             bit 1 =1 last code read was E0h
  297.             bit 0 =1 last code read was E1h
  298.  97h    BYTE    Keyboard status byte 2
  299.             bit 7 =1 keyboard transmit error flag
  300.             bit 6 =1 LED update in progress
  301.             bit 5 =1 RESEND received from keyboard
  302.             bit 4 =1 ACK received from keyboard
  303.             bit 3 reserved, must be zero
  304.             bit 2 Caps Lock LED
  305.             bit 1 Num Lock LED
  306.             bit 0 Scroll Lock LED
  307.  98h    DWORD    Timer2: [AT, PS exc Mod 30] ptr to user wait-complete flag
  308.                         (see INT 15, AX=8300h)
  309.  9Ch    DWORD    Timer2: [AT, PS exc Mod 30] user wait count in microseconds
  310.  A0h    BYTE    Timer2: [AT, PS exc Mod 30] Wait active flag:
  311.             bit 7 =1 wait time elapsed
  312.             bits 6-1 reserved
  313.             bit 0 =1 INT 15h, AH=86h has occurred
  314.  A1h  7 BYTEs    reserved for network adapters (oh really?)
  315.  A4h    DWORD    [PS/2 Mod 30] Saved Fixed Disk Interrupt Vector
  316.  A8h    DWORD    Video: EGA/MCGA/VGA ptr to Video Save Pointer Table (see below)
  317.  ACh-AFh    reserved
  318.  B0h    BYTE    (Phoenix 386 BIOS 1.10 10a) loop count for hard disk timeout
  319.           and delaying when beeping due to full keyboard buffer
  320.  B0h    DWORD    ptr to 3363 Optical disk driver or BIOS entry point.
  321.             When 3363 BIOS present, the signature "OPTIC ",00h occurs 3
  322.             bytes beyond this entry point.
  323.             When 3363 BIOS and 3363 File System Driver present, the
  324.             signature "FILE SYSTEM DRIVER",00h occurs 3 bytes beyond
  325.             this entry point.
  326.  B0h 16 BYTEs    (1988 Phoenix 386 BIOS 1.10 03) drive parameters for hard disk
  327.         type 48 (see INT 41,INT 46)
  328.  B4h    WORD    reserved
  329.  B6h  3 BYTEs    reserved for POST?
  330.  B9h  7 BYTEs    ???
  331.  C0h 16 BYTEs    (1988 Phoenix 386 BIOS 1.10 03) drive parameters for hard disk
  332.         type 49 (see INT 41,INT 46)
  333.  C0h 14 BYTEs    reserved
  334.  CEh    WORD    count of days since last boot???
  335.  D0h-EFh    reserved
  336.  D0h    BYTE    [Digiboard MV/4] length of data table
  337.  D1h    BYTE    [Digiboard MV/4] product ID
  338.  D2h    WORD    [Digiboard MV/4] base address found
  339.  D4h    BYTE    [Digiboard MV/4] ports
  340.  D5h    BYTE    [Digiboard MV/4] IRQ
  341.  D6h    WORD    [Digiboard MV/4] keyboards found
  342.  D8h    WORD    [Digiboard MV/4] mice found
  343.  DAh    BYTE    [Digiboard MV/4] current port (used by VGA initialization only)
  344.  DBh    BYTE    [Digiboard MV/4] master 8259 mask (used by VGA init only)
  345.  DCh    BYTE    [Digiboard MV/4] slave 8259 mask (used by VGA init only)
  346.  E0h-EFh    [Phoenix 386 BIOS] drive parameter table for first hard disk
  347.         if configurable "type 47"
  348.  EAh    WORD    [Omti controller] segment of extended BIOS data area???
  349.         drive parameter tables stored in specified segment
  350.  F0h-FFh    reserved for user
  351. 100h    BYTE    Print Screen Status byte
  352. 10Eh    BYTE    state of BREAK at start of BASICA.COM execution
  353. 10Fh    BYTE    flag: 02h if BASICA v2.10 running
  354. 116h    DWORD    INT 1Bh at start of BASICA.COM execution
  355. 11Ah    DWORD    INT 24h at start of BASICA.COM execution
  356.  
  357. Format of Interrupt Vector Table data storage (from 0000h:0000h):
  358. Offset    Size    Description
  359.  31Dh 16 BYTEs    user-definable hard disk parameters for drive type 47
  360.         (1989 AMI 386sx BIOS) (see INT 41,INT 46)
  361.  32Dh 16 BYTEs    user-definable hard disk parameters for drive type 48
  362.         (1989 AMI 386sx BIOS) (see INT 41,INT 46)
  363. Note:    these fields are used is the AMI BIOS setup is set to use the top of
  364.       the interrupt table for the extended BIOS data area
  365.  
  366. Format of Extended BIOS Data Area (see 40:0Eh for ptr) [PS only]
  367. Offset    Size    Description
  368.  00h    BYTE    Length of EBDA in kilobytes
  369.  01h 15 BYTEs    reserved
  370.  17h    BYTE    Number of entries in POST error log (0-5)
  371.  18h  5 WORDs    POST error log (each word is a POST error number)
  372.  19h-21h    reserved
  373.  22h    DWORD    Pointing Device Driver entry point
  374.  26h    BYTE    Pointing Device Flags 1
  375.            bit 7:    =1 command in progress
  376.            bit 6:    =1 resend
  377.            bit 5:    =1 acknowledge
  378.            bit 4:    =1 error
  379.            bit 3:    =0 reserved
  380.            bits 2-0: index count
  381.  27h    BYTE    Pointing Device Flags 2
  382.            bit 7:    =1 device driver far call flag
  383.            bits 6-3: reserved
  384.            bits 2-0: package size
  385.  28h  7 BYTEs    Pointing Device Auxiliary Device Data
  386.  2Fh    BYTE    reserved
  387.  30h    DWORD    Vector for INT 07h stored here during 80387 interrupt
  388.  34h    DWORD    Vector for INT 01h stored here during INT 07h emulation
  389.  38h    BYTE    Scratchpad for 80287/80387 interrupt code
  390.  39h    WORD    Timer3: Watchdog timer initial count
  391.  3Bh    BYTE    ??? seen non-zero on Model 30
  392.  3Ch    BYTE    ???
  393.  3Dh 16 BYTEs    Fixed Disk parameter table for drive 0 (for older machines
  394.             which don't directly support the installed drive)
  395.  4Dh 16 BYTEs    Fixed Disk parameter table for drive 1 (for older machines
  396.             which don't directly support the installed drive)
  397.  5Dh-6Bh    ???
  398.  6Ch    BYTE    Fixed disk: (=FFh on ESDI systems)
  399.             bits 7-4: Channel number 00-0Fh
  400.             bits 3-0: DMA arbitration level 00-0Eh
  401.  6Dh    BYTE    ???
  402.  6Eh    WORD    current typematic setting (see INT 16/AH=03h)
  403.  70h 167 BYTEs    ???
  404. 117h    WORD    keyboard ID (see INT 16/AH=0Ah)
  405. 119h and up:    ??? seen non-zero on Model 60
  406. 3F0h    BYTE    Fixed disk buffer (???!!!)
  407.  
  408. Format of Video Save Pointer Table [EGA/VGA/MCGA only]:
  409. Offset    Size    Description
  410.  00h    DWORD    ptr to Video Parameter Table
  411.  04h    DWORD    ptr to Parameter Dynamic Save Area, else 0 [EGA/VGA only]
  412.  08h    DWORD    ptr to Alphanumeric Character Set Override, else 0
  413.  0Ch    DWORD    ptr to Graphics Character Set Override, else 0
  414.  10h    DWORD    [VGA only] ptr to Secondary Save Pointer Table, must be valid
  415.  14h    DWORD    reserved, zero
  416.  18h    DWORD    reserved, zero
  417. Note: table initially in ROM, copy to RAM to alter, then update 40h:A8h.
  418.  
  419. Format of Secondary Video Save Pointer Table [VGA only]:
  420. Offset    Size    Description
  421.  00h    WORD    Length of this table in bytes, including this word (1Ah)
  422.  02h    DWORD    ptr to Display Combination Code Table, must be valid
  423.  06h    DWORD    ptr to second Alphanumeric Character Set Override, else 0
  424.  0Ah    DWORD    ptr to User Palette Profile Table, else 0
  425.  0Eh    DWORD    reserved, zero
  426.  12h    DWORD    reserved, zero
  427.  16h    DWORD    reserved, zero
  428. Note: table initially in ROM, copy to RAM to alter, then alter Save Ptr Table.
  429.  
  430. Format of Video Parameter Table [EGA, VGA only]:
  431. An array of 23 [EGA] or 29 [VGA] elements, each element being 64 bytes long.
  432. Elements appear in the order:
  433.  00h-03h    Modes 00h-03h in 200-line CGA emulation mode
  434.  04h-0Eh    Modes 04h-0Eh
  435.  0Fh-10h    Modes 0Fh-10h when only 64kB RAM on adapter
  436.  11h-12h    Modes 0Fh-10h when >64kB RAM on adapter
  437.  13h-16h    Modes 00h-03h in 350-line mode
  438.  17h        VGA Modes 00h or 01h in 400-line mode
  439.  18h        VGA Modes 02h or 03h in 400-line mode
  440.  19h        VGA Mode  07h in 400-line mode
  441.  1Ah-1Ch    VGA Modes 11h-13h
  442.  
  443. Format of Video Parameter Table element [EGA, VGA only]:
  444. Offset    Size    Description
  445.  00h    BYTE    Columns on screen          (see 40h:4Ah)
  446.  01h    BYTE    Rows on screen minus one      (see 40h:84h)
  447.  02h    BYTE    Height of character in scan lines (see 40h:85h)
  448.  03h    WORD    Size of video buffer          (see 40h:4Ch)
  449.  05h  4 BYTEs    Values for Sequencer Registers 1-4
  450.  09h    BYTE    Value for Miscellaneous Output Register
  451.  0Ah 25 BYTEs    Values for CRTC Registers 00h-18h
  452.  23h 20 BYTEs    Values for Attribute Controller Registers 00h-13h
  453.  37h  9 BYTEs    Values for Graphics Controller Registers 00h-08h
  454.  
  455. Format of Video Parameter Table [MCGA only] {guesswork from inspection}:
  456.     - 16 triplet BYTEs of R,G,B DAC info for 16 colors;
  457.     - An array of 11 elements, each element being 32 bytes long.
  458.       Elements appear in the order:
  459.         Modes 00h,01h in 200-line mode for digital displays
  460.         Modes 00h,01h in 400-line mode for analog displays
  461.         Modes 02h,03h in 200-line mode for digital displays
  462.         Modes 02h,03h in 400-line mode for analog displays
  463.         Modes 04h,05h in 200-line mode for digital displays
  464.         Modes 04h,05h in 400-line mode for analog displays
  465.         Mode  06h in 200-line mode for digital displays
  466.         Mode  06h in 400-line mode for analog displays
  467.         Mode  11h
  468.         Mode  13h in 200-line mode for digital displays
  469.         Mode  13h in 400-line mode for analog displays
  470.  
  471. Format of Video Parameter Table element [MCGA only]:
  472. Offset    Size    Description
  473.  00h    BYTE    Columns on screen          (see 40h:4Ah)
  474.  01h    BYTE    Rows on screen minus one      (see 40h:84h)
  475.  02h    BYTE    Height of character in scan lines (see 40h:85h)
  476.  03h    WORD    Size of video buffer          (see 40h:4Ch)
  477.  05h    WORD    ??? always zero
  478.  07h 21 BYTEs    Video data registers 00h-14h to port 3D5h indexed by 3D4h
  479.  1Ch    BYTE    PEL Mask to port 3C6h
  480.  1Dh    BYTE    CGA Mode Control to port 3D8h
  481.  1Eh    BYTE    CGA Border Control to port 3D9h
  482.  1Fh    BYTE    Extended Mode Control to port 3DDh
  483.  
  484. Format of Video Parameter Dynamic Save Area [EGA, VGA only]:
  485. Offset    Size    Description
  486.  00h 16 BYTEs    Last data written to Attribute Contr. Palette Registers 0-15
  487.  10h    BYTE    Last data written to Attribute Controller Overscan Register
  488.  11h-FFh    Reserved
  489.         Note: Need for table was that EGA registers were write-only.
  490.         Note: If default values (from the Video Parameter Table) are
  491.               over-ridden at a mode set by the VGA User Palette Profile
  492.               Table, then the Dynamic Save Area is updated with the
  493.               default values, not the User Profile ones.
  494.  
  495. Format of Alphanumeric Character Set Override:
  496. Offset    Size    Description
  497.  00h    BYTE    Length in bytes of each character in font table
  498.  01h    BYTE    Character generator RAM bank to load, 0=normal
  499.  02h    WORD    Number of characters in font table, normally 256
  500.  04h    WORD    Code of first character in font table, normally 0
  501.  06h    DWORD    ptr to font table
  502.  0Ah    BYTE    Displayable rows (FFh=use maximum calculated value)
  503.  0Bh    BYTEs    Array of mode values to which this font is to pertain
  504.     BYTE    FFh end of array
  505.  
  506. Format of Second Alphanumeric Character Set Override:
  507. Authorities differ, some say same as first override above, but IBM say:
  508. Offset    Size    Description
  509.  00h    BYTE    Length in bytes of each character in font table
  510.  01h    BYTE    Character generator RAM bank to load, normally non-zero
  511.  02h    BYTE    reserved
  512.  03h    DWORD    ptr to font table
  513.  07h    BYTEs    Array of mode values to which this font is to pertain
  514.     BYTE    FFh end of array
  515.  
  516. Format of Graphics Character Set Override:
  517. Offset    Size    Description
  518.  00h    BYTE    Number of displayable character rows
  519.  01h    WORD    Length in bytes of each character in font table
  520.  03h    DWORD    ptr to font table
  521.  07h    BYTEs    Array of mode values to which this font is to pertain
  522.     BYTE    FFh end of array
  523.  
  524. Format of Display Combination Code Table [VGA only]:
  525. Offset    Size    Description
  526.  00h    BYTE    Number of entries in the DCC table at offset 04h
  527.  01h    BYTE    Version number
  528.  02h    BYTE    Maximum display type code that can appear in DCC table
  529.  03h    BYTE    reserved
  530.  04h    ARRAY OF 2 BYTEs Each pair of bytes gives a valid display combination
  531.             Meaning of each byte:
  532.             00h    no display
  533.             01h    MDA with mono display
  534.             02h    CGA with color display
  535.             03h    reserved
  536.             04h    EGA with color display
  537.             05h    EGA with mono display
  538.             06h    Professional Graphics Controller
  539.             07h    VGA with mono display
  540.             08h    VGA with color display
  541.             09h    reserved
  542.             0Ah    MCGA with digital color display
  543.             0Bh    MCGA with analog mono display
  544.             0Ch    MCGA with analog color display
  545.             FFh    unrecognised video system
  546.  
  547. Format of User Palette Profile Table [VGA only]:
  548. Offset    Size    Description
  549.  00h    BYTE    Underlining: 01h=enable in all alphanumeric modes
  550.                  00h=enable in monochrome alphanumeric modes only
  551.                  FFh=disable in all alphanumeric modes
  552.  01h    BYTE    reserved
  553.  02h    WORD    reserved
  554.  04h    WORD    Number (0-17) of Attribute Controller registers in table
  555.  06h    WORD    Index (0-16) of first Attribute Controller register in table
  556.  08h    DWORD    ptr to table of Attribute Controller registers to override
  557.             Table is an array of BYTEs.
  558.  0Ch    WORD    Number (0-256) of video DAC Color registers in table
  559.  0Eh    WORD    Index (0-255) of first video DAC Color register in table
  560.  10h    DWORD    ptr to table of video DAC Color registers to override
  561.             Table is ??? triplets ??? of BYTEs???
  562.  14h    BYTEs    array of mode values to which this profile is to pertain
  563.     BYTE    FFh end of array
  564.